/*
 * ODO: Real-Time In-Memory ORM/DBMS Grid software
 * Copyright (c) 2008, Michael Oksenenko
 * All rights reserved.
 */
#include "OdoProgramIF.hpp"

#include "OsComponentFactory.hpp"
#include "ConsoleIF.hpp"

using namespace odo;

int OdoProgramIF::execute() {
	std::auto_ptr<ConsoleIF> console = OsComponentFactory::getConsole();
	console->initUnicode();
	console->printVersion();
	int retCode = main();
	console->printDone();
	console->waitForEnter();
	return retCode;
}

OdoProgramIF::~OdoProgramIF() {
	// void
}
